<?php

/**
 * simple_combobox - Simple combobox object
 *
 * @package
 * @author Alexis Eric
 * @copyright Copyright (c) 2012 - Erra Prod
 * @version $1.0$
 * @access public
 */
class Std_ComboBoxObject extends Erra_Fields_Base_Object {

    function __construct($objectId, $buildArgs = null) {
        parent::__construct($objectId, $buildArgs);

        $combobox_content = Erra_Fields_ComboBox::create('combobox_content')
                ->setDescription(__('Combobox value'));
        if (is_array($buildArgs)) {
            $combobox_content->fill($buildArgs);
        }
        $this->addFields($combobox_content);
    }

    public function __render($displayArgs = null) {
        $res = $this->combobox_content->value;
        return $res;
    }

}

?>